<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>SVG 改色</title>
  </head>
  <body>
    <div
      style="
        position: relative;
        width: 20px;
        height: 20px;
        border: 1px solid;
        overflow: hidden;
      "
    >
      <img
        src="https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web/6c61ae65d1c41ae8221a670fa32d05aa.svg"
        style="
          width: 20px;
          height: 20px;
          position: absolute;
          top: 0;
          left: -20px;
          filter: drop-shadow(20px 0 #32bb65);
        "
      />
    </div>
  </body>
</html>
